package com.dtw.ditouwang.ui;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;

import java.util.List;

public class CommentFragmentAdapter extends FragmentPagerAdapter {
    List<Fragment> fragmentLIst;
    public CommentFragmentAdapter(FragmentManager fm,List<Fragment> fragmentLIst) {
        super(fm);
        this.fragmentLIst=fragmentLIst;
    }

    @Override
    public Fragment getItem(int i) {
        return fragmentLIst.get(i);
    }

    @Override
    public int getCount() {
        return fragmentLIst.size();
    }
}
